package com.study.mike.MainTtry;

/**
 * @author KangHui
 * @Date 2022/8/2 11:10
 */
public class ExceptionMain {
    public static void main(String[] args) {
        ExceptionMain exceptionMain = new ExceptionMain();
        System.out.println(exceptionMain.test());
    }

    public String test() {
        try {
            int a = 25;
            a = a / 0;
            return "message1";
        } catch (Exception e) {
            System.out.println(e.getMessage());
        } finally {
            return "message2";
        }
    }
}
